<template>
  <a-result status="warning" title="使用镜像管理将开启外部链接，是否继续？">
    <template #extra>
      <a-button key="new-window" type="primary" @click="newWindow">
        在新页面中打开
      </a-button>
      <a-button key="this-window" @click="thisWindow">
        在此页面中打开
      </a-button>
    </template>
  </a-result>
</template>

<script>
	export default {
		name: "image-manage",

    data() {
      return {
        imageManageUrl: 'http://120.48.68.245',
      }
    },

    methods: {
      newWindow() {
        window.open(this.imageManageUrl,'_blank') //在新窗口打开外链接
      },
      thisWindow() {
        window.location.href =this.imageManageUrl;  //在本页面打开外部链接
      },
    }
	}
</script>

<style scoped>
  .ant-result {
    height: 100%;
    padding: 64px 32px;
  }
</style>
